pub mod fs;

use fs::{FileTree, FileType};

fn main() {
    let tree = FileTree {
        root: FileType::Folder(
            "/hello".to_string(),
            vec![
                FileType::File("a.txt".to_string()),
                FileType::Folder("b".to_string(), vec![]),
            ],
        ),
    };

    tree.display();

    let path = "/home/vision/code/rust/nvim-plugins/project-tree".to_string();
    let file_map = fs::tree_ls(path.clone());
    for (key, value) in &file_map {
        println!("{:#?} {:#?}", key, value);
    }
}

